filescan
Class FileScan

java.lang.Object
  extended by filescan.FileScan

public class FileScan
extends java.lang.Object

Scans a certain directory tree for files. Uses a FileFilter to determine whether or not a file should be included, and a FileScanHandler to read files with. Files that could be read and handled successfully are interpreted by the handler, and then added to a list. The list is returned.

Author:
Steven de Jong, steven.dejong@cs.unimaas.nl

Constructor Summary
FileScan()
           
 
Method Summary
static java.lang.Object[] scan(java.io.File path, java.io.FileFilter filter, FileScanHandler handler)
          Scan for files with the filter given in the path given.
static java.lang.Object[] scan(java.io.File path, java.lang.String extension)
          Scan for files with the extension given in the path given.
static java.lang.Object[] scan(java.io.File path, java.lang.String extension, FileScanHandler handler)
          Scan for files with the extension given in the path given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileScan

public FileScan()
Method Detail

scan

public static java.lang.Object[] scan(java.io.File path,
                                      java.lang.String extension)
Scan for files with the extension given in the path given. Uses a DefaultFileScanHandler.


scan

public static java.lang.Object[] scan(java.io.File path,
                                      java.lang.String extension,
                                      FileScanHandler handler)
Scan for files with the extension given in the path given. Use the provided handler to interpret the file.


scan

public static java.lang.Object[] scan(java.io.File path,
                                      java.io.FileFilter filter,
                                      FileScanHandler handler)
Scan for files with the filter given in the path given. Use the provided handler to interpret the file.